fn main() {
    let x: i8 = 10;
    println!("{}", x);

    // 无符号, 始终为正数
    let _y: u8 = 10; // 编译器警告, 定义了但是没使用, 可以给变量前面加个 _

    // 不同进制
    let decimal = 02_55; // 255, _ 用来分隔字符
    let hex = 0xff;
    let octal = 0o377;
    let binary = 0b1111_1111;
    print!("{},{},{},{}", decimal, hex, octal, binary);

    let byte = b'A';
    println!("{}", byte);

    let x = 2.0;
    let y: f32 = 1.0;

    let t = true;
    let f: bool = false;

    let c = 'c';
    println!("{}", c);

    // + - * /
    let a = 10;
    let b = 4;

    let remainder = a % b;
    println!("{}", remainder);
}
